//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public class EffectReference : Effect
    {
        private string _ref;

        public string Ref
        {
            get { return _ref; }
            set { _ref = value; }
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("effect"))
            {
                Ref = c.GetString("ref");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("effect"))
            {
                c.SetString("ref", Ref);
            }
        }
    }
}